/**
 * jims
 */
package com.jims.master.modules.drug.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

//(min=0, max=1, message="来源")

/**
 * Entity
 * @author DT
 * @version 2017-03-06
 */
public class DrugInoutNewClass extends DataEntity<DrugInoutNewClass> {

	private static final long serialVersionUID = 1L;
	private String inoutType;		// 出入库区分
	private String type;		// 入库分类
	private String statisticClass;		// 所属类别
	private String storageType;		// 库存类型
	private String fromLevel;		// 来源(上级、平级、下级、供货商)
	private String accountFlag;		// 0，不记账，1记账

	public DrugInoutNewClass() {
		super();
	}

	public DrugInoutNewClass(String id){
		super(id);
	}

	@Length(min=1, max=1, message="出入库区分长度必须介于 1 和 1 之间")
	public String getInoutType() {
		return inoutType;
	}

	public void setInoutType(String inoutType) {
		this.inoutType = inoutType;
	}
	
	@Length(min=1, max=1, message="入库分类长度必须介于 1 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=1, message="所属类别长度必须介于 0 和 1 之间")
	public String getStatisticClass() {
		return statisticClass;
	}

	public void setStatisticClass(String statisticClass) {
		this.statisticClass = statisticClass;
	}
	
	@Length(min=0, max=1, message="库存类型长度必须介于 0 和 1 之间")
	public String getStorageType() {
		return storageType;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}
	
	@Length(min=0, max=1, message="来源(上级、平级、下级、供货商)长度必须介于 0 和 1 之间")
	public String getFromLevel() {
		return fromLevel;
	}

	public void setFromLevel(String fromLevel) {
		this.fromLevel = fromLevel;
	}
	
	@Length(min=0, max=2, message="0，不记账，1记账长度必须介于 0 和 2 之间")
	public String getAccountFlag() {
		return accountFlag;
	}

	public void setAccountFlag(String accountFlag) {
		this.accountFlag = accountFlag;
	}
	
}